package day4zy;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Shengchanriqi {
    public static void main(String[] args) {
        Calendar cal = Calendar.getInstance();
        cal.set(2017,6,12);
        cal.add(Calendar.YEAR,5);
        System.out.println(cal.getTime());
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        System.out.println(df.format(cal.getTime()));
    }
}
